package com.wust.smartcity.common.service;

import com.wust.smartcity.common.entity.sys.distributedfile.SysDistributedFile;
import io.minio.ServerSideEncryption;
import java.io.InputStream;
import java.util.Map;

public interface MinioStorageService {
    SysDistributedFile upload(String bucketName, String objectName, InputStream stream, Long size, Map<String, String> headerMap, ServerSideEncryption sse, String contentType, String fileName, String fileType, String source);

    void delete(String bucketName, String objectName);

    void deleteDistributedFileByPrimaryKey(Long fileId);

    SysDistributedFile selectDistributedFileByPrimaryKey(Long fileId);
}
